//利用mockjs插件创建接口
import Mock from 'mockjs';
//引入接口需要数据:JSON|CSS默认对外暴露
import cartlist from './cartlist.json';
import cartlist1 from './cartlist1.json';
import cartlist2 from './cartlist2.json';
//造接口
//第一个参数:请求接口地址  第二个参数:发请求响应的数据
//默认是GET请求
Mock.mock("/mock/cartlist", { code: 200, data: cartlist });
Mock.mock("/mock/cartlist1", { code: 200, data: cartlist1 });
Mock.mock("/mock/cartlist2", { code: 200, data: cartlist2 });
